package com.muyu.danmo.service;


import com.muyu.common.core.domain.Result;
import com.muyu.danmo.domain.DanmoArtColleges;
import com.muyu.danmo.domain.dto.DepartmentDTO;
import com.muyu.danmo.req.DanmoArtCollegesReq;

import java.util.List;
import java.util.Map;

/**
 * 书画院校Service接口
 *
 * @author yangle
 * @date 2024-10-31
 */
public interface IDanmoArtCollegesService
{
    /**
     * 查询书画院校
     *
     * @param id 书画院校主键
     * @return 书画院校
     */
    public Result selectDanmoArtCollegesById(Long id);

    /**
     * 查询书画院校列表
     *
     * @param danmoArtColleges 书画院校
     * @return 书画院校集合
     */
    public List<DanmoArtColleges> selectDanmoArtCollegesList(DanmoArtColleges danmoArtColleges);

    /**
     * 新增书画院校
     *
     * @param danmoArtColleges 书画院校
     * @return 结果
     */
    public Result insertDanmoArtColleges(DanmoArtColleges danmoArtColleges);

    /**
     * 修改书画院校
     *
     * @param danmoArtColleges 书画院校
     * @return 结果
     */
    public Result updateDanmoArtColleges(DanmoArtColleges danmoArtColleges);

    /**
     * 批量删除书画院校
     *
     * @param ids 需要删除的书画院校主键集合
     * @return 结果
     */
    public Result deleteDanmoArtCollegesByIds(Long[] ids);

    /**
     * 删除书画院校信息
     *
     * @param id 书画院校主键
     * @return 结果
     */
    public int deleteDanmoArtCollegesById(Long id);

    /**
     * 查看自己收藏的院校
     *
     * @param userid 用户id
     * @return 结果
     */
    Result selectUid(Long userid);


    /**
     * 书法院校收藏
     * @param collegeId
     * @param userId
     * @return
     */
    Result isCollect( Long collegeId, Long userId);

    /**
     * 取消收藏院校
     * @param ids
     * @param userId
     * @return
     */
    Result removeArtCollectionColleges(Long[] ids, Long userId);

    List<DanmoArtColleges> queryColleges(DanmoArtCollegesReq req);

    Map<String, List<DepartmentDTO>> selectDepartmentsList(Long id);
}
